{include file="../__header.tpl"}
<link href="{$docroot}/static/css/base_pagination.css" type="text/css" rel="Stylesheet" />
<link href="{$docroot}static/less/jquery.datetimepicker.css?v={$cssversion}" type="text/css" rel="Stylesheet" />

<i id="scriptTag">page_outcome_list</i>
<div id="list"{if !$iscom} style="margin-bottom: 50px;"{/if}>
    <div id="DataTables_Table_0_filter" class="dataTables_filter clearfix">
         <a class="wd-btn primary" style="width:150px;margin-top:10px" href="?/WdminPage/add_outcome">添加支出项</a>
         <button class="wd-btn primary" style="width:150px;margin-top:10px" id="queryMonth">本月查询</button>
         
         <span style="color:red" id="total">总额: 0</span>   
      
        <div class="button-set">
          开始时间: <input type="text"  class="gs-text"   id="search_start" name="search_start"  autofocus />
          结束时间:  <input type="text"  class="gs-text"  id="search_end" name="search_end"  autofocus /> 
          <button class="button" id="queryDate">查询</button>
   
        </div>
    </div>
    <table class="dTable">
        <thead>
            <tr>
                <th class="hidden"> </th>
                <th style="width:320px">名字</th>
                <th>金额</th>
                <th>时间</th>
                <th>数量</th>
                <th>描述</th>
                <th style='width:200px;'>操作</th>
            </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</div>
<div id="page" style="margin-top:10px;float:right;"></div>
{*laytpl模版展示数据区域*}
<script id="data_render" type="text/html">
  
	{literal}
		{{# for(var i = 0, len = d.list.length; i < len; i++){ }}
		    <tr id='order-exp-{{ d.list[i].id }}'>

		        <td>
		           {{ d.list[i].name }}
                </td>
                <td>
                  {{ d.list[i].money }}
                </td>
                <td>{{d.list[i].add_time }}</td>
                <td>{{ d.list[i].amount }}</td>
                <td>{{ d.list[i].des }}</td>
                <td class="gray font12">
					<a href="?/WdminPage/update_outcome_view/id={{d.list[i].id}}">编辑</a>
                </td>
		        
		    </tr>
		{{# } }}
	{/literal}
</script>
 
    
{include file="../__footer.tpl"} 